﻿<?php 
if ($this->session->userdata('lang')==null)
{
	$this->session->set_userdata('ln','mk');
	$this->session->set_userdata('lang','macedonian');
	$this->lang->load('mk','macedonian');
}else
{
	$this->lang->load($this->session->userdata('ln'), $this->session->userdata('lang'));
};

?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="IT, information technologies, computer science, faculty, education, programming, engineering, FINKI, CSE, UKIM, финки, информатика, програмирање, факултет, УКИМ"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="<?php echo base_url();?>/styles/master.css" type="text/css" media="all"/>
<link rel="stylesheet" href="<?php echo base_url();?>/styles/css.css" type="text/css" media="all"/>
<link rel="stylesheet" href="<?php echo base_url();?>/styles/mediaqueries.css" type="text/css" media="all"/>

<?php echo link_tag('favicon.ico', 'shortcut icon', 'image/ico'); ?>
<script src="<?php echo base_url();?>/scripts/jquery-1.7.2.min.js"></script>
<script src="<?php echo base_url();?>/scripts/jquery-mobilemenu.min.js"></script>
<?php //echo $script;?>

<title><?php echo $title;?></title>
</head>

<body>
	<div id="fb-root"></div>
	<script>
		(function(d, s, id) {
			  var js, fjs = d.getElementsByTagName(s)[0];
			  if (d.getElementById(id)) return;
			  js = d.createElement(s); js.id = id;
			  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
			  fjs.parentNode.insertBefore(js, fjs);
		}(document, 'script', 'facebook-jssdk'));
	</script>
	<div class="main-holder">
		<div class="top-content">
			<div class="logo">
				<a href="http://www.ukim.edu.mk/" target="_blank"><img src="<?php echo base_url();?>/images/ukim-logo-9.png" alt=""/> </a> 
				<a href="<?= site_url('home')?>"><img src="<?php echo base_url();?>/images/logo.png" alt=""/> </a>
			</div>
			<div class="googlePlus">
				<div class="g-plusone">
					<script type="text/javascript">
						(function() {
							var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
							po.src = 'https://apis.google.com/js/plusone.js';
							var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
						})();
					</script>
				</div>
			</div>
			
			<div class="facebook-like">
				<div class="fb-like" data-send="false" data-width="300"
					data-show-faces="false"
					data-href="http://www.finki.ukim.mk/mk/home"
				></div>
			</div>
			<table class="top-links-table">
				<tr>
					<td>
						<a href='<?php echo site_url("lang/mk");?>'> MK</a> <a
							href='<?php echo site_url("lang/en");?>'
						> EN</a>
					</td>
				</tr>
			</table>
		</div>

		<div class="site-navigation">

			<nav id="main_nav">
				<ul>
					<li><a
					<?php  if($this->uri->segment(1)=='faculty') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
						href="<?= site_url('faculty') ?>"
					><?= $this->lang->line('about') ?> </a>
						<ul>
							<li><a
							<?php  if($this->uri->segment(2)=='dean') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
								href="<?= site_url('faculty') ?>/dean"
							><?= $this->lang->line('deans_office') ?> </a></li>
							<li><a
							<?php  if($this->uri->segment(2)=='history') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
								href="<?= site_url('faculty') ?>/history"
							><?= $this->lang->line('history') ?> </a></li>
							<li><a
							<?php  if($this->uri->segment(2)=='contact') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
								href="<?= site_url('faculty') ?>/contact"
							><?= $this->lang->line('contact') ?> </a></li>
						</ul>
					</li>
					<li><a
					<?php  if($this->uri->segment(1)=='studies') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
						href="<?= site_url('studies') ?>/undergraduate"
					><?= $this->lang->line('studies') ?> </a>
						<ul>
							<li><a
							<?php  if($this->uri->segment(2)=='undergraduate') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
								href="<?= site_url('studies') ?>/undergraduate"
							><?= $this->lang->line('BSc') ?> </a></li>
							<li><a
							<?php  if($this->uri->segment(2)=='graduate') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
								href="<?= site_url('studies') ?>/graduate"
							><?= $this->lang->line('MSc') ?> </a></li>
							<li><a
							<?php  if($this->uri->segment(2)=='PhD') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
								href="<?= site_url('studies') ?>/PhD"
							><?= $this->lang->line('PhD') ?> </a></li>
							<li><a
							<?php  if($this->uri->segment(2)=='lab') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
								href="<?= site_url('studies') ?>/lab"
							><?= $this->lang->line('lab') ?> </a></li>
							<li><a
							<?php  if($this->uri->segment(2)=='student_org') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
								href="<?= site_url('studies') ?>/student_org"
							><?= $this->lang->line('student_org') ?> </a></li>
						</ul>
					</li>
					<li><a
					<?php  if($this->uri->segment(1)=='announcements') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
						href="<?= site_url('announcements') ?>"
					><?= $this->lang->line('announce') ?> </a></li>
					<li><a
					<?php  if($this->uri->segment(1)=='admissions') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
						href="<?= site_url('admissions') ?>/BSc"
					><?= $this->lang->line('addmisions') ?> </a>
						<ul>
							<li><a
							<?php  if($this->uri->segment(2)=='BSc') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
								href="<?= site_url('admissions') ?>/BSc"
							><?= $this->lang->line('BSc') ?> </a></li>
							<li><a
							<?php  if($this->uri->segment(2)=='MSc') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
								href="<?= site_url('admissions') ?>/MSc"
							><?= $this->lang->line('MSc') ?> </a></li>
							<li><a
							<?php  if($this->uri->segment(2)=='PhD') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
								href="<?= site_url('admissions') ?>/PhD"
							><?= $this->lang->line('PhD') ?> </a></li>
						</ul>
					</li>
					<li><?php 
					if($this->session->userdata('user'))
					{
						?> <a
						<?php $url=$this->uri->segment(1); if(($url=='adminNews') || ($url=='adminQuestions')||($url=='adminAnnouncements') || ($url=='adminActivities') || ($url=='adminStaff') || ($url=='adminStudies')) echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""; ?>
						href='<?= site_url('admin') ?>'
					><?= $this->lang->line('administrator') ?> </a> <?php } ?>
						<ul>
							<?php $access = explode(",", $this->session->userdata('role'));
							$user = $this->session->userdata('user');
							?>

							<?php if(in_array("staff", $access) && $user->staffProfile!=0){?>
							<li><a
							<?php  if($this->uri->segment(1)=='adminStaff') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
								href="<?= site_url('adminStaff/staff/'.$user->staffProfile) ?>"
							><?= $user->username ?> </a></li>
							<?php }?>
							<?php if(in_array("news", $access)){?>
							<li><a
							<?php  if($this->uri->segment(1)=='adminNews') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
								href="<?= site_url('adminNews/news') ?>"
							><?= $this->lang->line('news') ?> </a></li>
							<?php }?>
							<?php if(in_array("announcements", $access)){?>
							<li><a
							<?php  if($this->uri->segment(1)=='adminAnnouncements') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
								href="<?= site_url('adminAnnouncements/announcements')?>"
							><?= $this->lang->line('announce') ?> </a></li>
							<?php }?>
							<?php if(in_array("activities", $access)){?>
							<li><a
							<?php  if($this->uri->segment(1)=='adminActivities') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
								href="<?= site_url('adminActivities/activities')?>"
							><?= $this->lang->line('activities') ?> </a></li>
							<?php }?>
							<?php if(in_array("news", $access)){?>
							<li><a
							<?php  if($this->uri->segment(1)=='admin') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
								href="<?= site_url('admin/fileUpload')?>"
							><?= $this->lang->line('file_upload') ?> </a></li>
							<?php }?>
							<?php if(in_array("admin", $access)){?>
							<li><a
							<?php  if($this->uri->segment(1)=='adminUsers') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
								href="<?= site_url('adminUsers/users') ?>"
							><?= $this->lang->line('users') ?> </a></li>
							<?php }?>
							<?php if(in_array("admin", $access)){?>
							<li><a
							<?php  if($this->uri->segment(1)=='adminStaff') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
								href="<?= site_url('adminStaff') ?>"
							><?= $this->lang->line('staff') ?> </a></li>
							<?php }?>
							<?php if(in_array("studies", $access)){?>
							<li><a
							<?php  if($this->uri->segment(1)=='adminStudies') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
								href="<?= site_url('adminStudies/allStudies') ?>"
							><?= $this->lang->line('studies') ?> </a></li>
							<li><a
							<?php  if($this->uri->segment(1)=='adminQuestions') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
								href="<?= site_url('adminQuestions/questions') ?>"
							><?= $this->lang->line('questions') ?> </a></li>
							<?php }?>
							<li><a href="<?= site_url('admin/logout') ?>"><?= $this->lang->line('logout') ?>
							</a></li>
						</ul>
					</li>
					<li class="last"><a
					<?php  if($this->uri->segment(1)=='staff') echo "class=\"active\" style=\"color:#2F3080; font-weight:bold;\""?>
						href="<?= site_url('staff') ?>"
					><?= $this->lang->line('staff') ?> </a>
						<ul>

							<li><a href="<?=site_url('staff/staffList/14') ?>"><?= $this->lang->line('teaching_staff') ?>
							</a></li>
							<li><a href="<?=site_url('staff/staffList/15') ?>"><?= $this->lang->line('administrative_staff') ?>

							</a>
							</li>
						</ul>
					</li>
				</ul>
			</nav>
			<div class="clear"></div>
		</div>

		<!-- OVDE IDE KONTENT -->
		<div class="main-content">
			<?php $this->load->view($include); ?>
		</div>
		<div class="clear"></div>
		<div class="footer-wrapper">
			<div class="footer">
				<div class="footer-nav">
					<div style="width: 20%; float: left;">
						<ul>
							<li><a href="<?= site_url('faculty') ?>"><b><?= $this->lang->line('about') ?>
								</b><br /> </a>
								<ul>
									<li><a href="<?= site_url('faculty/dean') ?>"><?= $this->lang->line('deans_office') ?>
									</a></li>
									<li><a href="<?= site_url('faculty/history') ?>"><?= $this->lang->line('history') ?>
									</a></li>
									<li><a href="<?= site_url('faculty/contact') ?>"><?= $this->lang->line('contact') ?>
									</a></li>
								</ul>
							</li>
						</ul>
					</div>
					<div style="width: 20%; float: left;">
						<ul>
							<li><a href="<?= site_url('studies') ?>/undergraduate"><b><?= $this->lang->line('studies') ?>
								</b> <br /> </a>
								<ul>
									<li><a href="<?= site_url('studies') ?>/undergraduate"><?= $this->lang->line('BSc') ?>
									</a></li>
									<li><a href="<?= site_url('studies') ?>/graduate"><?= $this->lang->line('MSc') ?>
									</a></li>
									<li><a href="<?= site_url('studies') ?>/PhD"><?= $this->lang->line('PhD') ?>
									</a></li>
									<li><a href="<?= site_url('studies') ?>/lab"><?= $this->lang->line('lab') ?>
									</a></li>
									<li><a href="<?= site_url('studies') ?>/student_org"><?= $this->lang->line('student_org') ?>
									</a></li>
								</ul>
							</li>
						</ul>
					</div>
					<div style="width: 20%; float: left;">
						<ul>

							<li><a href="<?= site_url('admissions') ?>/BSc"><b><?= $this->lang->line('addmisions') ?>
								</b> <br /> </a>
								<ul>
									<li><a href="<?= site_url('admissions') ?>/BSc"><?= $this->lang->line('BSc') ?>
									</a></li>
									<li><a href="<?= site_url('admissions') ?>/MSc"><?= $this->lang->line('MSc') ?>
									</a></li>
									<li><a href="<?= site_url('admissions') ?>/PhD"><?= $this->lang->line('PhD') ?>
									</a></li>
								</ul>
							</li>
						</ul>
					</div>
					<div style="width: 20%; float: left;">
						<a href="<?= site_url('announcements') ?>"><b><?= $this->lang->line('announce') ?>
						</b> </a>
					</div>
					<div style="width: 20%; float: left;">
						<a href="<?= site_url('staff') ?>"><b><?= $this->lang->line('staff') ?>
							</b> <br /> </a>

							<ul>
								<li><a href="<?=site_url('staff/staffList/14') ?>"><?= $this->lang->line('teaching_staff') ?>
								</a></li>
								<li><a href="<?=site_url('staff/staffList/15') ?>"><?= $this->lang->line('administrative_staff') ?>
								</a></li>
							</ul>
					</div>
				</div>

				<div class="clear"></div>
				<table class="footer-table">
					<tr>
						<td style="border-right: 1px solid #888;">
							<table>
								<tr>
									<td style="padding: 0 30px 30px 0;">
										<img
											src="<?php echo base_url();?>/images/logo-finki-footer.png"
											alt="finki footer logo"
										/>
									</td>
									<td style="padding-right: 30px; font-size: 12px;">
										ул. "Руѓер Бошковиќ" 16, Поштенски Фах 393, 1000 &nbsp;
										Скопје,<br /> Македонија <br /> contact@finki.ukim.mk
									</td>
								</tr>
								<tr>
									<td colspan="2" style="padding-right: 30px;">
										<p>
											© 2012 ФИНКИ Сите права се задржани, Развиено од <a
												href="http://4ward.mk/" target="_blank"
											>4Ward</a>, Валиден код <a href="#" target="_blank">XHTML</a>
											&amp; <a href="#" target="_blank">CSS</a>
										</p>
									</td>
								</tr>
							</table>
						</td>
						<td>
							<table class="social-links-table">
								<tr>
									<td>
										<a id="hlTwitterMk" class="social-links-twitter"
											href="http://twitter.com/FINKIedu" target="_blank"
										></a>
									</td>
									<td>
										<a id="hlFacebookLink" class="social-links-facebook"
											href="http://www.facebook.com/FINKI.ukim.mk" target="_blank"
										></a>
									</td>
									<td>
										<a id="hlLinkedIn" class="social-links-linkedin"
											href="http://www.linkedin.com/company/faculty-of-computer-science-and-engineering---skopje"
											target="_blank"
										></a>
									</td>
								</tr>
								<tr>
									<td>
										<a id="hlTwitterEn" class="social-links-twittermk"
											href="http://twitter.com/CSEedu" target="_blank"
										></a>
									</td>
									<td>
										<a id="hlFlickr" class="social-links-flickr"
											href="http://www.flickr.com/photos/finki-cse/"
											target="_blank"
										></a>
									</td>
									<td>
										<a id="hlYoutube" class="social-links-youtube"
											href="http://www.youtube.com/user/FINKIedu" target="_blank"
										></a>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
				<div class="clear"></div>
			</div>
		</div>
</div>

</body>
</html>
